package com.electric.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhangbin
 * @since 2018-08-28
 */
public class Attachment extends Model<Attachment> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("SEQ_ID")
    private String seqId;
    /**
     * 附件名称
     */
    @TableField("FILE_NAME")
    private String fileName;
    /**
     * 附件类型
     */
    @TableField("FILE_TYPE")
    private String fileType;
    /**
     * 附件地址
     */
    @TableField("FILE_PATH")
    private String filePath;
    /**
     * 记录主键
     */
    @TableField("RECORD_ID")
    private String recordId;
    /**
     * 下载次数
     */
    @TableField("DOWNLOAD_COUNTS")
    private Integer downloadCounts;
    /**
     * 文件上传时间
     */
    @TableField("INSERT_TIME")
    private Date insertTime;
    /**
     * 删除标志位
     */
    @TableField("DEL_FLAG")
    private Integer delFlag;


    public String getSeqId() {
        return seqId;
    }

    public void setSeqId(String seqId) {
        this.seqId = seqId;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getRecordId() {
        return recordId;
    }

    public void setRecordId(String recordId) {
        this.recordId = recordId;
    }

    public Integer getDownloadCounts() {
        return downloadCounts;
    }

    public void setDownloadCounts(Integer downloadCounts) {
        this.downloadCounts = downloadCounts;
    }

    public Date getInsertTime() {
        return insertTime;
    }

    public void setInsertTime(Date insertTime) {
        this.insertTime = insertTime;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    protected Serializable pkVal() {
        return this.seqId;
    }

    @Override
    public String toString() {
        return "Attachment{" +
        ", seqId=" + seqId +
        ", fileName=" + fileName +
        ", fileType=" + fileType +
        ", filePath=" + filePath +
        ", recordId=" + recordId +
        ", downloadCounts=" + downloadCounts +
        ", insertTime=" + insertTime +
        ", delFlag=" + delFlag +
        "}";
    }
}
